<!doctype html>
<html>
<head>
    <include file="public/head"/>
    <title>ThinkCMF插件 采集插件</title>
    <meta name="description" content="ThinkCMF插件 采集插件">
    <meta name="keywords" content="ThinkCMF插件 采集插件">
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{$site.sitename} <span class="caret"></span></a>
            <ul class="dropdown-menu">
            <li><a href="{:url('/plugin/crawler/admin_rule/index',array('crawler_site_id'=>$siteid))}">采集规则</a></li>
            <li><a href="{:url('/plugin/crawler/admin_rule/add',array('crawler_site_id'=>$siteid))}">添加规则</a></li>
            <li><a href="{:url('/plugin/crawler/admin_url/index',array('crawler_site_id'=>$siteid))}">采集列表</a></li>
            <li><a href="{:url('/plugin/crawler/admin_collection/index',array('crawler_site_id'=>$siteid))}">采集数据</a></li>
            <li role="separator" class="divider"></li>
            <li><a href="{:url('/plugin/crawler/admin_index/index')}">切换站点</a></li>
            </ul>
        </li>
        <li class="active"><a>采集列表</a></li>
    </ul>
    <div class="common-form">
        <form method="post" class="js-ajax-form" action="#">
            <div class="table_list">
                <table width="100%" class="table table-hover">
                    <thead>
                    <tr>
                        <th width="50">ID</th>
                        <th>规则名</th>
                        <th>列表网址</th>
                        <th>插入栏目</th>
                        <th>核心词</th>
                        <th>创建时间</th>
                        <th width="140">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <foreach name="urls" item="vo">
                        <tr>
                            <td>{$vo->id}</td>
                            <td>{$vo->crlrule->rulename}</td>
                            <td>{$vo->listurl}</td>                         
                            <td>{$vo->crlrule->category->name}</td>
                            <td>
                            <if condition="!empty($vo.crlrule.dictionary)">
                                {$vo->crlrule->dictionary->keyword}
                            </if>
                            </td>
                            <td>{$vo->create_time|date="Y-m-d H:i:s",###}</td>
                            <td>
                                <a href="{:url('/plugin/crawler/admin_url/edit',array('id'=>$vo.id))}">编辑列表</a>
                                <a class="js-ajax-delete" href="{:url('/plugin/crawler/admin_url/delete',array('id'=>$vo.id))}">删除</a>
                            </td>
                        </tr>
                    </foreach>
                    </tbody>
                </table>
            </div>
            <div class="pagination">{$page}</div>
        </form>
    </div>
</div>
<include file="public/scripts"/>
</body>
</html>